package ru.nsu.fit.shared.questions_request;

/**
 * Created by IntelliJ IDEA.
 * User: vtimofeev
 * Date: 12/13/12
 * Time: 12:25 AM
 * To change this template use File | Settings | File Templates.
 */

//As far as DatabaseManager should not depend on package "ws"
//We need this auxiliary class
public class QuestionsGetterInputForDB {

    //User id in database
    public final int userId;
    //How many questions user would like to get
    public final int questionNumber;
    //Offset - if user wants not first 10, but second 10 or last 10... whatever
    public final int questionsOffset;

    //Location
    public final double latitude;
    public final double longitude;

    //(radius of sphere of interest in kilometers)
    public final double radius;

    public QuestionsGetterInputForDB(int userId, int questionNumber, int questionsOffset,
                                     double latitude, double longitude, double radius) {
        this.radius = radius;
        this.longitude = longitude;
        this.latitude = latitude;
        this.questionsOffset = questionsOffset;
        this.questionNumber = questionNumber;
        this.userId = userId;
    }
}
